#ifndef XYPHONECONTROL_H
#define XYPHONECONTROL_H

#include <QObject>
#include "xyendpoint.h"
#include "xyaccount.h"
#include <QVariantMap>
#include "xycall.h"

class XyPhoneControl : public QObject
{
    Q_OBJECT
public:
    explicit XyPhoneControl(QObject *parent = nullptr);
    void init(void);
    void pjsipInit(void);
    void sipRegister(QVariantMap& mapParam);
    void sipunRegister(QVariantMap& mapParam);
    void sipCall(QVariantMap& mapParam);
    void sipHangup(QVariantMap& mapParam);
private:
    void soundReset(void);
signals:
private:
    XyEndpoint* m_pEndpoint;
    XyAccount m_Account;
};

#endif // XYPHONECONTROL_H
